﻿@{
    ViewBag.Title = "Detail";
}
@model CW_ArticleView

<div class="CN-articleContent">
    <header class="articleHeader">
        <h1 class="articleTitle">@Model.Article.Title</h1>
        <div class="aritcleMeta">
            <span class="item">@Convert.ToDateTime(Model.Article.CreateDate).ToString("yyyy-MM-dd")</span>
            @if (!string.IsNullOrEmpty(Model.MenuName))
            {
                <span class="item">
                分类：
                @Html.ActionLink(Model.MenuName, "ArticleType", new { menuid = Model.Article.MenuId })                
            </span>
            }
            
            <span class="item">阅读(@Model.Article.PV)</span>
            @*<span class="item">评论(@Model.Article.CommentCount)</span>*@
            <span class="item"></span>
        </div>
    </header>
    <article>
        
        @Html.Raw(Model.Article.Content)
    </article>
    <div class="articleTags">
        标签：
        @foreach (var tag in Model.tagNames)
        {
            @Html.ActionLink(tag.TagName, "Tag", new { tagid=tag.TagId})
        }
    </div>
    @*<div class="relates">
        <h3>相关推荐</h3>
        <ul>
            <li><a href="#">关于群规和如何学好前端和后台的相关说明</a></li>
            <li><a href="#">CSS中margin属性在IE6中的双倍浮动bug</a></li>
        </ul>
    </div>*@
</div>
